package adapter.practice_06;

/**
 * @author yi qiang
 * @date 2021/9/10 0:57
 */
public class AndroidPhoneAdapter implements AndroidPhone {

    private final IosPhone iosPhone;

    public AndroidPhoneAdapter(IosPhone iosPhone) {
        this.iosPhone = iosPhone;
    }

    @Override
    public void play() {
        System.out.println("装载IOS虚拟机 ...");
        iosPhone.play();
    }

}
